/*
 * 2005-12-27 lxm 创建。 
 */
package com.hd123.rumba.organization;

import java.text.ParseException;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.runtime.BaseEntity;
import com.hd123.rumba.runtime.IXMLPersistent;

/**
 * 组织角色 | 实体 | 接口类
 * 
 * @author lxm
 * 
 */
public abstract class OrgRole extends BaseEntity implements IOrgRole, IXMLPersistent {

  private Integer type;
  private IOrganization organization;

  public String getXMLTagName() {
    return this.getClass().getName();
  }
  
  public void writeToXML(Document doc, Element element) throws BusinessException {
    // Do Nothing
    // 需要子类实现之。
  }
  
  public void readFromXML(Element element) throws ParseException {
    // Do Nothing
    // 需要子类实现之。
  }
  
  public String getClassCaption() {
    return COrgRole.CAPTION_CLASS;
  }

  public IOrganization getOrganization() {
    return organization;
  }

  public void setOrganization(IOrganization organization) {
    this.organization = organization;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

}
